demo: Add two buttons to the message dialog
authorWilliam Jon McCann <william.jon.mccann@gmail.com>
Sun, 12 Jan 2014 02:59:45 +0000 (21:59 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Jan 2014 22:52:07 +0000 (17:52 -0500)
This tests the new. prompt-like layout of message dialogs
better.

https://bugzilla.gnome.org/show_bug.cgi?id=720059

demos/gtk-demo/dialog.c

index 17f837e8f8bc5a2c7394918656d5999440e5da11..209fd6da3df1d1f71439977292ec00e2fcbb9a58 100644 (file)
@@ -20,7 +20,7 @@ message_dialog_clicked (GtkButton *button,
   dialog = gtk_message_dialog_new (GTK_WINDOW (window),
                                    GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
                                    GTK_MESSAGE_INFO,
-                                   GTK_BUTTONS_OK,
+                                   GTK_BUTTONS_OK_CANCEL,
                                    "This message box has been popped up the following\n"
                                    "number of times:");
   gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),